<?php
/**
 * Created by PhpStorm.
 * User: Steven
 * Date: 2017/5/24
 */

namespace app\order\validate;


use think\Validate;

class StudentValidate extends Validate
{
    protected $rule = [
//        'parent_name' => 'require',
//        'mobile' => 'require|number|length:11',
        'name' => 'require',
        'birthday' => 'require|date',
//        'address' => 'require',
    ];

    protected $message = [
        'name.require' => '学生姓名不能为空',
//        'parent_name.require' => '家长姓名不能为空',
//        'mobile.require' => '手机号不能为空',
        'birthday.date' => '生日日期格式不对',
//        'address.require' => '联系地址不能为空',
//        'mobile.number' => '手机号格式不对',
//        'mobile.length' => '手机号格式不对',
    ];

}